//
//  RootView.m
//  UI6_限时代码2
//
//  Created by dllo on 15/11/16.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "RootView.h"

@implementation RootView

- (instancetype)initWithFrame:(CGRect)frame
{
    self = [super initWithFrame:frame];
    if (self) {
        [self createSubviews];
    }
    return self;
}

- (void)createSubviews
{
    self.backgroundColor = [UIColor whiteColor];
    
    self.scrollV = [[UIScrollView alloc] initWithFrame:self.frame];
    self.scrollV.contentSize = CGSizeMake(self.frame.size.width * 21, 0);
    self.scrollV.bounces = YES;
    self.scrollV.showsHorizontalScrollIndicator = YES;
    self.scrollV.pagingEnabled = YES;
    self.scrollV.contentOffset = CGPointMake(self.frame.size.width, 0);
    [self addSubview:self.scrollV];
    [_scrollV release];
 
    
    
    
    
    
    
    
    
    
    
    
    
}

@end
